// routes/index.ts
import Router from 'koa-router';
import nexRouter from './nex';

const router = new Router();
router.all('/',(ctx) => {
    ctx.body = 'Hello'
})
// 将各个路由模块挂载到主路由
router.use('/nex', nexRouter.routes());

export default router;
